<template>
	<view class="goods-sku-item-num" :class="{'goods-sku-item-acitve': isActive}">
		<view class="goods-sku-item-row">
			<view class="goods-sku-item-name">
				<text>规格名称规格名称10次</text>
			</view>
			<view class="goods-sku-item-price-box">
				<view class="goods-sku-item-price">
					<text class="goods-sku-item-price-icon">￥</text>
					<text>1000</text>
				</view>
				<view class="goods-sku-item-old-price">
					<text>¥ 139</text>
				</view>
			</view>
		</view>
		<view class="goods-sku-item-num-box">
			<service-num-input v-model="num"></service-num-input>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			isActive: {
				type: Boolean,
				default: () => false
			},
			sku: {
				type: Object,
				default: () => {}
			}
		},
		data() {
			return {
				num: 0
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
	.goods-sku-item-num {
		width: 100%;
		height: 158rpx;
		background: #F8F8F8;
		border-radius: 16rpx;
		border: 2rpx solid #F5F5F5;
		padding: 24rpx 26rpx;
		display: flex;
		// flex-direction: column;
		justify-content: space-between;
		box-sizing: border-box;
	}
	
	.goods-sku-item-acitve {
		border-color: #E72A2A;
		background: #FFF9F9;
	}
	
	.goods-sku-item-row {
		// display: flex;
		// align-items: center;
		// justify-content: space-between;
	}
	
	.goods-sku-item-name {
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
	}
	
	.goods-sku-item-price-box {
		margin-top: 12rpx;
		display: flex;
		align-items: center;
	}
	
	.goods-sku-item-price {
		font-weight: 900;
		font-size: 42rpx;
		color: #FF2E2E;
	}
	
	.goods-sku-item-price-icon {
		font-size: 34rpx;
	}
	
	.goods-sku-item-old-price {
		font-weight: 400;
		font-size: 24rpx;
		color: #999999;
		text-decoration: line-through;
		margin-left: 8rpx;
	}
	
	.goods-sku-item-content {
		font-weight: bold;
		font-size: 28rpx;
		color: #333333;
	}
	
	.goods-sku-item-one-price {
		font-weight: 400;
		font-size: 24rpx;
		color: #999999;
		text-decoration: line-through;
	}
	
	.goods-sku-item-num-box {
		
	}
	
	.goods-sku-item-num-input {
		display: flex;
		align-items: center;
	}
	
	.num-icon {
		width: 44.8rpx;
		height: 44.8rpx;
		
		image{
			width: 100%;
			height: 100%;
		}
	}
	
	.num-input {
		width: 50rpx;
		font-weight: 400;
		font-size: 38rpx;
		color: #666666;
		text-align: center;
	}
</style>